from flask import Flask

app = Flask(__name__)

# 方式一
@app.route('/index')
def index():
    return "hello world"


# 方式二
def order():
    return "hello order"
app.add_url_rule('/order',view_func=order)

if __name__ == '__main__':
    app.run(debug=True)